package com.woniu.smart.service.impl;

import com.woniu.smart.dto.VisitorAccDTO;
import com.woniu.smart.entity.Access;
import com.woniu.smart.mapper.AccessMapper;
import com.woniu.smart.service.AccessService;
import com.woniu.smart.vo.AccessVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：zhulongxing
 * @date ：Created in 2022/10/22 17:36
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class AccessServiceImpl implements AccessService {
    @Autowired
    private AccessMapper accessMapper;

    @Override
    public int deleteByIds(List<Integer> visitorIds) {
        return accessMapper.deleteByIds(visitorIds);
    }

    @Override
    public int deleteByPrimaryKey(Long visitorId) {
        return accessMapper.deleteByPrimaryKey(visitorId);
    }

    @Override
    public int insert(Access record) {
        return accessMapper.insert(record);
    }

    @Override
    public int insertSelective(Access record) {
        return accessMapper.insertSelective(record);
    }

    @Override
    public int insertNewSelective(VisitorAccDTO visitorAccDTO) {
        return accessMapper.insertNewSelective(visitorAccDTO);
    }

    @Override
    public Access selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Access record) {

        return accessMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Access record) {
        return accessMapper.updateByPrimaryKey(record);
    }
}
